package com.soup.lab.spring.web.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.soup.lab.spring.web.tools.enums.validation.EnumCode;
import com.soup.lab.spring.web.enums.StateEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@AllArgsConstructor
public class ExamplePojo {

    @JsonSerialize
    private Integer id;

    @EnumCode(StateEnum.class)
    private String state;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

}
